package com.opal.modules.costReportForm.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.opal.modules.costReportForm.entity.table.CostReportInitialInfo;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class CostReportInitialInfoLayui extends CostReportInitialInfo {

    @JsonProperty("id")
    //子类id
    private Integer subId;

    private String State;
    private List<CostReportInitialInfoLayui> children = new ArrayList<>();

    public CostReportInitialInfoLayui() {
    }

    public void addchildren(CostReportInitialInfoLayui info) {
        children.add(info);
    }
}
